Class com.symantec.itools.swing.DataElem
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.symantec.itools.swing.DataElem

Object
   |
   +----com.symantec.itools.swing.DataElem

public class DataElem
extends Object
DataElem custom data type optionally used by the JChart component that allows you to specify label and color information associated with each data point

Author:
Michael Hopkins, Symantec

Variable Index

 o color
 o data
 o graphColors
 o label
 o seed

Constructor Index

 o com.symantec.itools.swing.DataElem()
Default Constructor If a color isn't specified, a color is assigned from the color utility vector
 o com.symantec.itools.swing.DataElem(double)
 o com.symantec.itools.swing.DataElem(double, String)
 o com.symantec.itools.swing.DataElem(double, String, Color)

Method Index

 o getColor()
gets the color of the current data element
 o getData()
gets the data of the current data element
 o getLabel()
gets the label of the current data element
 o setColor(Color)
sets the color of current data element
 o setData(double)
sets the data of current data element
 o setLabel(String)
sets the label of current data element

Variables

 o color
protected java.awt.Color color
 o data
protected double data
 o graphColors
public static java.util.Vector graphColors
 o label
protected java.lang.String label
 o seed
protected static int seed

Constructors

 o DataElem
public DataElem()
Default Constructor If a color isn't specified, a color is assigned from the color utility vector

 o DataElem
public DataElem(double value)
 o DataElem
public DataElem(double value,
                String s)
 o DataElem
public DataElem(double value,
                String s,
                Color c)

Methods

 o getColor
public java.awt.Color getColor()
gets the color of the current data element

Returns:
color associated with the element
See Also:
setColor
 o getData
public double getData()
gets the data of the current data element

Returns:
data (double) associated with the element
See Also:
setData
 o getLabel
public java.lang.String getLabel()
gets the label of the current data element

Returns:
label associated with the element
See Also:
setLabel
 o setColor
public void setColor(Color c)
sets the color of current data element

Parameters:
c - color to be used for the given data point
See Also:
getColor
 o setData
public void setData(double value)
sets the data of current data element

Parameters:
value - double to be used for the given data point
See Also:
getData
 o setLabel
public void setLabel(String s)
sets the label of current data element

Parameters:
s - String to be used for the given data point
See Also:
getLabel

All Packages  Class Hierarchy  This Package  Previous  Next  Index